package com.neusoft.feign;

import com.neusoft.po.Cart;
import com.neusoft.po.CommonResult;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

@Service
public class CreditFeignClientCallBack implements CreditFeignClient {
    /*@Override
    public CommonResult listCart(Cart cart){
        //返回降级响应（食品信息返回null）
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }

    @Override
    public CommonResult clearCart(Cart cart){
        //返回降级响应（食品信息返回null）
        return new CommonResult(403, "fegin触发了熔断降级", null);*/

    @Override
    public CommonResult payoutByUserId(@PathVariable("userId")String userId, @PathVariable("sub_number") Integer sub_number) {
        //返回降级响应（信息返回null）
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }

    @Override
    public CommonResult getTotalCreditByUserId(@PathVariable("userId") String userId){
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }

    @Override
    public CommonResult<Integer> rechargeByUserId(@PathVariable("userId")String userId, @PathVariable("add_number")Integer add_number) {
        return new CommonResult(403, "fegin触发了熔断降级", null);
    }
}

